"""
API包
定义API路由和视图函数
"""
from flask import Blueprint

# 创建蓝图
auth_bp = Blueprint('auth', __name__)
user_bp = Blueprint('user', __name__)
product_bp = Blueprint('product', __name__)
order_bp = Blueprint('order', __name__)
logistics_bp = Blueprint('logistics', __name__)
inventory_bp = Blueprint('inventory', __name__)
statistics_bp = Blueprint('statistics', __name__)

# 导入视图函数
from app.api import auth, user, product, order, logistics, inventory, statistics

__all__ = [
    'auth_bp',
    'user_bp',
    'product_bp',
    'order_bp',
    'logistics_bp',
    'inventory_bp',
    'statistics_bp'
]
